testgtk: Stop using gdk_display_get_maximal_cursor_size
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 Jan 2018 04:25:12 +0000 (23:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 17 Jan 2018 04:25:50 +0000 (23:25 -0500)
This function is going away. Just make a reasonable assumption
that cursor sizes up to 128 are supported.

tests/testgtk.c

index 166ea93d108e0bc12bb43402c08a7137c0f097d1..11d72949e7b896b8d2c43fe82cb5b64947daacc9 100644 (file)
@@ -3891,8 +3891,6 @@ create_cursors (GtkWidget *widget)
 
     if (cursor_demo)
         {
-          guint w, h;
-
           hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
           gtk_box_pack_start (GTK_BOX (vbox), hbox);
 
@@ -3905,8 +3903,7 @@ create_cursors (GtkWidget *widget)
           gtk_entry_set_text (GTK_ENTRY (entry), "default");
           gtk_box_pack_start (GTK_BOX (hbox), entry);
 
-          gdk_display_get_maximal_cursor_size (gtk_widget_get_display (vbox), &w, &h);
-          size = gtk_spin_button_new_with_range (1.0, MIN (w, h), 1.0);
+          size = gtk_spin_button_new_with_range (1.0, 128.0, 1.0);
           gtk_spin_button_set_value (GTK_SPIN_BUTTON (size), 24.0);
           gtk_box_pack_start (GTK_BOX (hbox), size);